<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "ixb_archive_attachment".
 *
 * @property integer $id
 * @property integer $archive_id
 * @property string $type
 * @property string $description
 * @property integer $created_by
 * @property integer $created_at
 * @property integer $updated_by
 * @property integer $updated_at
 * @property integer $deleted_by
 * @property integer $deleted_at
 * @property integer $is_deleted
 */
class ArchiveAttachment extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'ixb_archive_attachment';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['archive_id'], 'required'],
            [['archive_id', 'created_by', 'created_at', 'updated_by', 'updated_at', 'deleted_by', 'deleted_at', 'is_deleted'], 'integer'],
            [['type', 'description'], 'string'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '附件序号',
            'archive_id' => '文档',
            'type' => '类型',
            'description' => '描述',
            'created_by' => '创建人',
            'created_at' => '创建时间',
            'updated_by' => '最后更新时间',
            'updated_at' => '最后更新时间',
            'deleted_by' => '删除人',
            'deleted_at' => '删除时间',
            'is_deleted' => '是否已删除',
        ];
    }
}
